package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 清运单主对象 l_waybill
 *
 * @author zyb
 * @date 2022-01-11
 */
@Data
public class LWaybill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "billid", type = IdType.AUTO)
    private Long billid;

    /** 单据编码 */
    @Excel(name = "单据编码")
    private String billcode;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date billdate;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long gid;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Long payid;

    /** 开单人 */
    @Excel(name = "开单人")
    private Long empid;

    /** 司机 */
    @Excel(name = "司机")
    private Long driverid;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Integer billstate;

    /** 清运单明细信息 */
    private List<LWaybilldetail> lWaybilldetailList;
    /** 订单id*/
    private Long orderid;
    @Override
    public String toString() {
        return "LWaybill{" +
                "billid=" + billid +
                ", billcode='" + billcode + '\'' +
                ", billdate=" + billdate +
                ", gid=" + gid +
                ", amount=" + amount +
                ", payid=" + payid +
                ", empid=" + empid +
                ", driverid=" + driverid +
                ", billstate=" + billstate +
                ", lWaybilldetailList=" + lWaybilldetailList +
                ", orderid=" + orderid +
                '}';
    }
}
